import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn } from "typeorm";
@Entity()
export class CodeSnippet {
    @PrimaryGeneratedColumn()
    id: number

    @Column('text')
    content: string

    @Column({ select: true, comment: '描述' })
    desc: string

    @CreateDateColumn({ type: 'timestamp' })
    createTime: Date
}